package fatesg.soft.fabrica;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class ConnectionFactory {

	public EntityManager em;
	public EntityManagerFactory emf;

	public ConnectionFactory() {
		emf = Persistence.createEntityManagerFactory("EJBPU");
		em = emf.createEntityManager();
	}

	public void close() {
		emf.close();
	}

}
